package com.example.dictionary;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 词典服务主启动类
 * 
 * @author memento
 */
@SpringBootApplication
@EnableAsync
@MapperScan("com.example.dictionary.repository")
@ComponentScan(
    basePackages = {
        "com.example.dictionary",
        "com.example.memento.download"
    },
    excludeFilters = @org.springframework.context.annotation.ComponentScan.Filter(
        type = org.springframework.context.annotation.FilterType.REGEX,
        pattern = "com\\.example\\.dictionary\\.test\\..*"
    )
)
public class DictionaryApplication {

    public static void main(String[] args) {
        SpringApplication.run(DictionaryApplication.class, args);
    }
}
